package com.yunji.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class UpgradeFileVO {

    @ApiModelProperty("版本ID")
    private Long fileId;

    @ApiModelProperty("版本名称")
    private String fileName;

    @ApiModelProperty("版本文件路径")
    private String filePath;

    @ApiModelProperty("文件版本")
    private String version;

    @ApiModelProperty("设备类型")
    private String chipType;

    @ApiModelProperty("机型")
    private String modelType;

    @ApiModelProperty("安装包大小")
    private String packSize;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private byte[] pack;

    @ApiModelProperty("是否最新 true 是 false 否")
    private boolean newest;

}
